<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <title>预约管理</title>
<%@ include file="/common/head-admin.jsp"%>
<%@ include file="/common/left-admin.jsp"%>

<div class="main_right">
<div class="jsbox_ht_mainright">&nbsp;&nbsp;预约管理</div>
<s:form action="consultManager" method="post" namespace="/admin" theme="simple">
预约人姓名：<s:textfield name="userName" cssStyle="width:120px"/>
预约单状态：<s:select
                list="#{'10':'未接受咨询', '20':'已接受咨询'}"
                name="consultStauts"
                headerKey="-1"
                headerValue="--- 全部  ---"
                 cssStyle="width:155px"
                />
    <s:submit value="查  询"/>
    <table width="515" border="0" cellpadding="0" cellspacing="1" bgcolor="#99CC66">
      <tr align="center">
        <td width="8%" bgcolor="#f4faee">序号</td>
        <td width="18%" bgcolor="#f4faee">预约人</td>
        <td width="20%" bgcolor="#f4faee">预约时间</td>
        <td width="18%" bgcolor="#f4faee">联系电话</td>
        <td width="15%" bgcolor="#f4faee">测评报告</td>
        <td width="11%" bgcolor="#f4faee">状态</td>
        <td width="10%" bgcolor="#f4faee">操作</td>
      </tr>
      <s:if test="consults.size > 0">
        <s:iterator value="consults" status="stat">
        <tr align="center">
          <td bgcolor="#FFFFFF">&nbsp;<s:property value="#stat.index + 1" /></td>
          <td bgcolor="#FFFFFF">&nbsp;<s:property value="user.name" /></td>
          <td bgcolor="#FFFFFF">&nbsp;<s:property value="acDate" /></td>
          <td bgcolor="#FFFFFF">&nbsp;<s:property value="userTel" /></td>
          <s:url id="disReportUrl" action="disReport" namespace="/">
              <s:param name="id" value="user.id" />
          </s:url>
          <td bgcolor="#FFFFFF"><s:a href="%{disReportUrl}">查看</s:a></td>
          <s:url id="consultUpdUrl" action="consultUpd" namespace="/admin">
              <s:param name="id" value="id" />
          </s:url>
          <s:url id="consultDeleteUrl" action="consultDelete" namespace="/admin">
              <s:param name="id" value="id" />
          </s:url>
          <s:if test="statusCode == 10">
            <td bgcolor="#FFFFFF"><s:a href="%{consultUpdUrl}">未咨询</s:a></td>
          </s:if>
          <s:else>
            <td bgcolor="#FFFFFF"><s:a href="%{consultUpdUrl}">已咨询</s:a></td>
          </s:else>
          <td bgcolor="#FFFFFF"><s:a href="%{consultDeleteUrl}">删除</s:a></td>
        </tr>
        </s:iterator>
      </s:if>
    </table>
</s:form>
<br />
</div>
<%@ include file="/common/foot-admin.jsp"%>
